﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;
    import flash.utils.*;

    public class SGuildWarehouseOut extends IMessageBase
    {
        public var entityId:SEntityId;
        public var item:SPlayerItem;
        public var moneyMap:Dictionary;
        public const _type:int = 16110;
        public static var _regist:SGuildWarehouseOut = new SGuildWarehouseOut(true);

        public function SGuildWarehouseOut(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildWarehouseOut();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            this.item.__write(param1);
            DictIntIntHelper.write(param1, this.moneyMap);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.item = new SPlayerItem();
            this.item.__read(param1);
            this.moneyMap = DictIntIntHelper.read(param1);
            return;
        }// end function

    }
}
